Skip to content

codex/fix gce git branches#27

Merged
quan0715 merged 1 commit intomainfrom
codex/fix-gce-git-branches
Feb 6, 2026
Merged

codex/fix gce git branches#27
quan0715 merged 1 commit intomainfrom
codex/fix-gce-git-branches

Conversation

@quan0715
Copy link
Copy Markdown
Owner

@quan0715 quan0715 commented Feb 6, 2026

  • feat: Add workspace export functionality
  • build: Add development toolchains to base image
  • Add Rust 1.74 toolchain to base image

Copilot AI review requested due to automatic review settings February 6, 2026 11:49
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the devops base image to include a Rust toolchain, likely to support building/installing Rust-backed dependencies within the container build/runtime environment.

Changes:

  • Add Rust-related environment variables (RUSTUP_HOME, CARGO_HOME, PATH) to the base image.
  • Install Rust 1.74.1 via rustup during the apt install layer and verify rustc/cargo availability.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +12 to +15
# Rust toolchain (1.7x)
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH
Copy link

Copilot AI Feb 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR title/description references GCE git branches and workspace export, but this diff only adds a Rust toolchain to the base image. Please align the PR metadata with the actual change (or include the missing commits) so reviewers can accurately assess scope and impact.

Copilot uses AI. Check for mistakes.
# Rust toolchain (1.7x)
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH
Copy link

Copilot AI Feb 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In ENV PATH=/usr/local/cargo/bin:$PATH, consider using ${PATH} (and quoting if your style requires) to avoid any ambiguity around variable expansion and to match common Dockerfile patterns for PATH appends.

Suggested change
PATH=/usr/local/cargo/bin:$PATH
PATH=/usr/local/cargo/bin:${PATH}

Copilot uses AI. Check for mistakes.
postgresql-client \
nodejs \
npm \
&& curl -fsSL https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain 1.74.1 \
Copy link

Copilot AI Feb 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rustup will try to modify shell profile files by default; in container images this can leave unnecessary dotfiles in the image and is not used by the non-interactive runtime. Consider adding the installer option to prevent PATH/profile modification since PATH is already being set via ENV.

Suggested change
&& curl -fsSL https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain 1.74.1 \
&& curl -fsSL https://sh.rustup.rs | sh -s -- -y --no-modify-path --profile minimal --default-toolchain 1.74.1 \

Copilot uses AI. Check for mistakes.
postgresql-client \
nodejs \
npm \
&& curl -fsSL https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain 1.74.1 \
Copy link

Copilot AI Feb 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The command curl -fsSL https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain 1.74.1 downloads and executes a remote script as root without any integrity or authenticity verification. If the rustup distribution endpoint, DNS, or TLS channel is compromised, an attacker can inject arbitrary commands into your build, resulting in a backdoored base image. Consider installing Rust from a pinned, signed package or downloading a specific rustup-init artifact and verifying its checksum/signature before execution instead of using a curl | sh pipeline.

Copilot uses AI. Check for mistakes.
@quan0715 quan0715 merged commit 3425c16 into main Feb 6, 2026
8 checks passed
@quan0715 quan0715 deleted the codex/fix-gce-git-branches branch February 8, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants